package com.atguigu.common.exception.enumtion;



public enum ExceptionEnum {
    UNKNOW_EXCEPTION(10000,"系统未知异常"),
    SMS_CODE_REPEAT(10002,"请求验证码过于频繁"),
    VALID_EXCEPTION(10001,"数据检验异常"),
    USERNAME_PWD_ERROR(10003,"用户名或者密码错误");

   private int code;
   private String msg;

    ExceptionEnum(int code, String msg) {
        this.code=code;
        this.msg=msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
